#!usr/bin/node

const fs = require('fs/promises');

async function main() {
  const file = process.argv[2] || __filename;
  try{
    const data = await fs.readFile(file,'utf-8');
    console.log(data);
  }catch(err){
    console.log(err.message);
  }
}

main();
